flowchart LR
subgraph DW["Data Wrangling"]
zscores[Compute Z-scores]
zscores --> WHZ --> Define[/Define wasting/] --> Exclude([Exclude outliers in WHZ MFAZ])
zscores --> MFAZ --> Define --> Exclude
end
subgraph PC["Plausibility Check"]
Plausible[Plausibility Check]
Plausible --> wfhz[WHZ] --> FLFLT([Flawless or Faulty])
Plausible --> mfaz[MFAZ] --> FLFLT
end
subgraph SFET["Split FE and Testing sets"]
FLW[Flawless] --> FLW_TS_RDM[/Time & Random based/]
FLW_TS_RDM --> FLWFE[/F.Extraction: 80%/] --> FLW_TSFE_set([31,066])
FLW_TS_RDM --> FLWT[/Testing: 20%/] --> FLW_TST_set([7,767])
FLT[Faulty] --> FLT_TS_RDM[/Time & Random based/]
FLT_TS_RDM --> FLTFE[/F.Extraction: 80%/] --> FLT_TSFE_set([74,075])
FLT_TS_RDM --> FLTT[/Testing: 20%/] --> FLT_TST_set([18,519])
end
subgraph FEX["Feature Extraction"]
burden[Total wasting]
burden --> WHZMUAC[WHZ or MUAC]
burden --> WHZMFAZ[WHZ or MFAZ]
RAT[Prevalence Ratio]
WHZMUAC --> prop1[/%WHZ/] --> Med([Median])
WHZMUAC --> prop2[/%MUAC/] --> Med
WHZMFAZ --> prop1
WHZMFAZ --> prop3[/%MFAZ/] --> Med
RAT --> ratio1[/WHZ:MUAC/] --> Med
RAT --> ratio2[/WHZ:MFAZ/] --> Med
end
subgraph MOD["Model"]
model[Predict and Test Accuract]
model --> metric1[Mean Absolute Error]
model --> metric2[Mean Percent Absolute Error]
end
DW --> PC --> SFET --> FEX --> MOD